package views;

import java.awt.Font;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.border.EmptyBorder;

public class MainFrame extends JFrame {
	
	private JPanel contentPane;
	public MainView mainView;
	public ReportsView reportsView;
	public ReferencesView referencesView;
	
	public MainFrame() {
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setBounds(100, 100, 800, 600);
		this.setLocationRelativeTo(null);
		this.setVisible(true);
		this.setResizable(false);
		
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(null);
		this.setContentPane(contentPane);
		
		JLabel lblCosca = new JLabel("COSCA");
		lblCosca.setFont(new Font("Arial Black", Font.PLAIN, 40));
		lblCosca.setBounds(504, 10, 200, 50);
		contentPane.add(lblCosca);
		
		JLabel lblActivity = new JLabel("Activity");
		lblActivity.setFont(new Font("Arial Black", Font.PLAIN, 20));
		lblActivity.setBounds(664, 10, 120, 25);
		contentPane.add(lblActivity);
		
		JLabel lblTracking = new JLabel("Tracking");
		lblTracking.setFont(new Font("Arial Black", Font.PLAIN, 20));
		lblTracking.setBounds(664, 35, 120, 25);
		contentPane.add(lblTracking);
		
		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		tabbedPane.setBounds(10, 50, 774, 510);
		contentPane.add(tabbedPane);
		
		mainView = new MainView();
		tabbedPane.add(mainView);
		
		reportsView = new ReportsView();
		tabbedPane.add(reportsView);
		
		referencesView = new ReferencesView();
		tabbedPane.add(referencesView);
	}
}
